<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<%
com.trackvoodoo.models.UserDocument.User userDetail = (com.trackvoodoo.models.UserDocument.User) request.getAttribute("userDetails");
String currentUser = (String) request.getAttribute("username");
%>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>TrackVoodoo Alpha 1 - Profile.</title>

<% if (userDetail != null)
{%>
	name <%=userDetail.getName() %><br>
	loginname <%=userDetail.getLoginName() %><br>
	<br>
	friendCount <%=userDetail.getFriendCount() %><br>
	<br>
	Car count = <%=userDetail.getCarArray().length %><br>
	trackDates = <%=userDetail.getTrackDateArray().length %><br>
	currentAchivements = <%=userDetail.getCurrentAchivementsArray().length %><br>

<%} 
else
{%>	
			
			No user implemented, please go back...
			
			<%}%>
</head>
<body>
<br>

<a href="index.jsp?username=<%=currentUser%>">Back</a>



</body>
</html>